///*
// * To change this template, choose Tools | Templates
// * and open the template in the editor.
// */
//package com.icee.myth.manager.config;
//
//import com.google.gson.JsonSyntaxException;
//import com.icee.myth.manager.Manager;
//import com.icee.myth.manager.activity.JSONActivityTemplates;
//import com.icee.myth.utils.JSONHelper;
//import com.icee.myth.utils.LogConsts;
//import com.icee.myth.utils.MLogger;
//import com.icee.myth.utils.StackTraceUtil;
//import java.io.IOException;
//
///**
// *
// * @author chencheng
// */
//public class ManagerConfigManager {
//
////    public static void loadManagerConfig(String filename, Manager manager) {
////        try {
////            ManagerConfig config = JSONHelper.parseFile(filename, ManagerConfig.class);
////
////            manager.setTrustedBrowserHosts(config.trustedBrowserHosts);
////            manager.setTrustedConsoleHosts(config.trustedConsoleHosts);
////            manager.initServers(config.serverConfigs);
////        } catch (JsonSyntaxException jse) {
////            MLogger.getlogger().log(LogConsts.LOGTYPE_GAMEERR, StackTraceUtil.getStackTrace(jse));
////        } catch (IOException ioe) {
////            MLogger.getlogger().log(LogConsts.LOGTYPE_GAMEERR, StackTraceUtil.getStackTrace(ioe));
////        }
////    }
////
////    public static void loadActivityConfig(String filename, Manager manager) {
////        try {
////            JSONActivityTemplates activityTemplates = JSONHelper.parseFile(filename, JSONActivityTemplates.class);
////
////            manager.initActivities(activityTemplates);
////        } catch (JsonSyntaxException jse) {
////            MLogger.getlogger().log(LogConsts.LOGTYPE_GAMEERR, StackTraceUtil.getStackTrace(jse));
////        } catch (IOException ioe) {
////            MLogger.getlogger().log(LogConsts.LOGTYPE_GAMEERR, StackTraceUtil.getStackTrace(ioe));
////        }
////    }
//}
